package resp

func Success(data any) map[string]any {
	body := make(map[string]any)
	body["code"] = 200
	body["msg"] = "操作成功"
	body["data"] = data
	return body
}
func Error(err error) map[string]any {
	body := make(map[string]any)
	body["code"] = 209
	body["msg"] = "操作失败"
	return body
}

func NoAuth() map[string]any {
	body := make(map[string]any)
	body["code"] = 401
	body["msg"] = "账号未登录或登录超时"
	return body
}
